﻿<Window x:Class="Reveil.Views.ConfigurationView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:Reveil.Views"
        mc:Ignorable="d"
        Title="Configuration" 
        Height="300" 
        Width="600" 
        Background="{StaticResource ResourceKey=ControlBackgroundBrush}"
        WindowStartupLocation="CenterScreen" 
        ShowInTaskbar="False" 
        ResizeMode="NoResize" 
        WindowStyle="ToolWindow"
        DataContext="{Binding Source={StaticResource Locator}, Path=Main}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <!-- Pomodoro clock-->
        <TextBlock Margin="0,0,15,0" Text="Pomodoro Clock:"/>
        <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal">
            <TextBlock Margin="0,0,15,0" Text="Sprint:"/>
            <TextBox Margin="0,0,15,0"  Text="{Binding PomodoroVM.Sprint}" Width="20"/>
            <TextBlock Margin="0,0,15,0" Text="Long Break:"/>
            <TextBox Margin="0,0,15,0" Text="{Binding PomodoroVM.LongBreak}" Width="20"/>
            <TextBlock Margin="0,0,15,0" Text="Short Break:"/>
            <TextBox Margin="0,0,15,0" Text="{Binding PomodoroVM.ShortBreak}" Width="20"/>
        </StackPanel>
        <!-- Sonnerie -->
        <TextBlock Grid.Row="2" Text="Sonnerie::"/>
        <Grid Grid.Column="1" Grid.Row="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="40"/>
            </Grid.ColumnDefinitions>
              <TextBox IsReadOnly="True" Text="{Binding Path=RingPath}"/>
            <Button x:Name="ButtonPath" Grid.Column="1" Content="..." Height="20" Margin="0.4,0,-0.4,0" VerticalAlignment="Bottom" Click="ButtonPath_Click"/>
        </Grid>
        <!-- Paramètres -->
        <TextBlock Grid.Row="4" Text="Paramètres:"/>
        <WrapPanel Grid.Column="1" Grid.Row="5" Orientation="Horizontal">
            <RadioButton  Content="Réinitialiser tous les paramètres" IsChecked="True" Margin="0,0,5,0"/>
            <Button Command="{Binding ResetCommand}" Content="OK" Width="50"/>
        </WrapPanel>
        </Grid>
</Window>
